@extends('layouts.app')


@section('title','register')


@section('content')

<div class="hd">
    <h1 class="page_title">注册</h1>
    <p class="page_desc">请认真填写以下信息,以便于通过审核</p>
</div>


@if($errors->any())
<ul class="list-group">
    @foreach($errors->all() as $error)
    <li class="list-group-item list-group-item-danger">{{$error}}</li>
    @endforeach
</ul>
@endif

<form method="post" action="{{url('/register')}}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">

<div class="weui_cells weui_cells_form">

    <div class="weui_cell">
        <div class="weui_cell_hd"><label class="weui_label">帐号</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <input class="weui_input wee" type="text" name="username" value="{{old('username')}}" placeholder="由字母、数字、下划线组成">
        </div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_hd"><label class="weui_label">密码</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <input class="weui_input" type="password" name="password" value="{{old('password')}}" placeholder="请输入6-12位密码">
        </div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_hd"><label class="weui_label">姓名</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <input class="weui_input" type="text" name="name" value="{{old('name')}}" placeholder="请输入真实姓名">
        </div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_hd"><label class="weui_label">微信</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <input class="weui_input" type="text" name="wechat" value="{{old('wechat')}}" placeholder="请输入微信号(非昵称)">
        </div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_hd"><label class="weui_label">qq</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <input class="weui_input" type="tel" name="qq" value="{{old('qq')}}" placeholder="请输入qq号">
        </div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_hd"><label class="weui_label">手机</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <input class="weui_input" type="tel" name="mobile" value="{{old('mobile')}}" placeholder="请输入手机号">
        </div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_hd"><label class="weui_label">email</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <input class="weui_input" type="text" name="email" value="{{old('email')}}" placeholder="请输入email">
        </div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_hd"><label for="" class="weui_label">学历</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <select class="weui_select" name="edu">
                <option value="">请选择</option>
                <option value="本科以下">本科以下</option>
                <option value="本科">本科</option>
                <option value="硕士">硕士</option>
                <option value="博士">博士</option>

            </select>
        </div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_hd"><label for="" class="weui_label">生日</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <input class="weui_input" type="date" name="birthday" value="{{old('birthday')}}">
        </div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_hd"><label for="" class="weui_label">性别</label></div>
        <div class="weui_cell_bd weui_cell_primary">
            <select class="weui_select" name="sex">
                <option value="">请选择</option>
                <option value="男">男</option>
                <option value="女">女</option>

            </select>
        </div>
    </div>

    <div class="weui_cells_title">自我介绍</div>

    <div class="weui_cells weui_cells_form">
        <div class="weui_cell">
            <div class="weui_cell_bd weui_cell_primary">
                <textarea class="weui_textarea" placeholder="请输入评论" rows="3" name="intro">{{old("intro")}}</textarea>
                <div class="weui_textarea_counter"><span>0</span>/200</div>
            </div>
        </div>
    </div>


</div>



<div class="content-padded">

    <input type="submit" value="提交" class="weui_btn weui_btn_primary">
    <!-- <a href="javascript:void(0);" type="submit" class="weui_btn weui_btn_primary">提交</a> -->
    <a href="javascript:void(0);" class="weui_btn weui_btn_default">取消</a>
</div>

</form>


@stop

